package com.wechatmall.api.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * </p>
 *
 * @author zpc
 * @since 2025-09-24 02:24:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "Usercoupons", description = "实体")
public class Usercoupons implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID", example = "1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String id;

    @Schema(description = "用户ID", example = "示例值")
    private String userId;

    @Schema(description = "模版ID", example = "示例值")
    private String couponTemplateId;

    @Schema(description = "优惠码", example = "示例值")
    private String couponCode;

    @Schema(description = "状态", example = "示例值")
    @TableField("`status`")
    private String status;

    @Schema(description = "使用时间", example = "示例值")
    private String usedAt;

    @Schema(description = "用户订单ID", example = "示例值")
    private String usedOrderId;

    private String expireAt;

    private String receivedAt;

    @TableField("`source`")
    private String source;

    @Schema(description = "备注", example = "示例值")
    private String remark;
}